// vant 组件库 代码 分离
import Vue from 'vue'

import { Lazyload, DatetimePicker, Image, Tag, CellGroup, Divider, Search, Row, Col, Badge, Popup, Dialog, ActionSheet, PullRefresh, List, Button, NavBar, Form, Field, Tabbar, TabbarItem, Icon, Tab, Tabs, Cell, Toast } from 'vant'

// const arr = {
//   Lazyload, DatetimePicker, Image, Tag, CellGroup, Divider, Search, Row, Col, Badge, Popup, Dialog, ActionSheet, PullRefresh, List, Button, NavBar, Form, Field, Tabbar, TabbarItem, Icon, Tab, Tabs, Cell, Toast
// }

// arr.forEach(Component => Vue.use(Component))

Vue.use(Lazyload) // v-lazy指令
Vue.use(Toast)
Vue.use(NavBar)
Vue.use(Button)
Vue.use(Form)
Vue.use(Field)
Vue.use(Tabbar)
Vue.use(TabbarItem)
Vue.use(Icon)
Vue.use(Tab)
Vue.use(Tabs)
Vue.use(Cell)
Vue.use(List)
Vue.use(PullRefresh)
// 动作面板
Vue.use(ActionSheet)
Vue.use(Dialog)
Vue.use(Popup)
Vue.use(Badge)
Vue.use(Row)
Vue.use(Col)
Vue.use(Search)
Vue.use(Divider)
Vue.use(CellGroup)
Vue.use(Tag)
Vue.use(Image)
// Vue.use(Popup)
Vue.use(DatetimePicker)
